/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.oracleandsxnd.erp.member.entity;

import com.oracleandsxnd.erp.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;


/**
 * 会员礼品Entity
 * @author 会员礼品
 * @version 2019-12-13
 */
public class MemberGift extends DataEntity<MemberGift> {
	
	private static final long serialVersionUID = 1L;
	private String giftid;		// 礼品id
	private String giftname;		// 礼品名称
	private String intergral;		// 积分
	private String membername;		// 消费金额每元积1分
	private String memberid;		// 积分抵扣金额
	
	public MemberGift() {
		super();
	}

	public MemberGift(String id){
		super(id);
	}

	@Length(min=0, max=32, message="礼品id长度必须介于 0 和 32 之间")
	public String getGiftid() {
		return giftid;
	}

	public void setGiftid(String giftid) {
		this.giftid = giftid;
	}
	
	@Length(min=0, max=200, message="礼品名称长度必须介于 0 和 200 之间")
	public String getGiftname() {
		return giftname;
	}

	public void setGiftname(String giftname) {
		this.giftname = giftname;
	}
	
	@Length(min=0, max=10, message="积分长度必须介于 0 和 10 之间")
	public String getIntergral() {
		return intergral;
	}

	public void setIntergral(String intergral) {
		this.intergral = intergral;
	}
	
	@Length(min=0, max=100, message="消费金额每元积1分长度必须介于 0 和 100 之间")
	public String getMembername() {
		return membername;
	}

	public void setMembername(String membername) {
		this.membername = membername;
	}
	
	@Length(min=0, max=32, message="积分抵扣金额长度必须介于 0 和 32 之间")
	public String getMemberid() {
		return memberid;
	}

	public void setMemberid(String memberid) {
		this.memberid = memberid;
	}
	
}